<template>
  <div class="home-page">
    <!-- 首屏轮播焦点图 -->
    <section class="hero-carousel" @mouseenter="pauseCarousel" @mouseleave="resumeCarousel">
      <!-- 动态粒子背景 -->
      <div class="particles-bg"></div>
      
      <!-- 轮播容器 -->
      <div class="carousel-container">
        <!-- 产品轮播 -->
        <div class="carousel-track" :style="trackStyle">
          <div 
            v-for="(product, index) in carouselProducts" 
            :key="product.id"
            class="carousel-slide"
            :class="{ active: currentIndex === index }"
          >
            <div class="product-showcase">
              <!-- 产品视觉区 -->
              <div class="product-visual">
                <div class="product-glow"></div>
                <div class="product-image">
                  <div class="phone-mockup">
                    <div class="phone-screen">
                      <img :src="product.image" :alt="product.name" />
                    </div>
                    <div class="phone-frame"></div>
                  </div>
                </div>
              </div>
              
              <!-- 产品信息 -->
              <div class="product-info">
                <div class="product-badge">🚀 {{ product.badge }}</div>
                <h1 class="product-title">{{ product.name }}</h1>
                <div class="product-features">
                  <span v-for="feature in product.features" :key="feature" class="feature-tag">
                    {{ feature }}
                  </span>
                </div>
                <p class="product-slogan">"{{ product.slogan }}"</p>
                
                <!-- 操作按钮 -->
                <div class="action-buttons">
                  <button class="btn btn-primary" @click="exploreProduct(product)">
                    {{ product.primaryAction }}
                  </button>
                  <button class="btn btn-secondary" @click="showTechDetails(product)">
                    {{ product.secondaryAction }}
                  </button>
                </div>
              </div>
            </div>
          </div>
        </div>
        
        <!-- 导航控制 -->
        <button class="carousel-nav carousel-prev" @click="prevSlide">
          <span>◀</span>
        </button>
        <button class="carousel-nav carousel-next" @click="nextSlide">
          <span>▶</span>
        </button>
        
        <!-- 进度指示 -->
        <div class="carousel-indicators">
          <div 
            v-for="(product, index) in carouselProducts" 
            :key="product.id"
            class="indicator"
            :class="{ active: currentIndex === index }"
            @click="goToSlide(index)"
          >
            <div class="indicator-progress" v-if="currentIndex === index"></div>
          </div>
        </div>
        
        <!-- 轮播计数器 -->
        <div class="carousel-counter">
          <span class="current">{{ currentIndex + 1 }}</span>
          <span class="separator">/</span>
          <span class="total">{{ carouselProducts.length }}</span>
          <span class="auto-text">(3秒自动切换)</span>
        </div>
      </div>
    </section>

    <!-- 核心技术展示区 -->
    <section class="tech-features">
      <div class="container">
        <div class="section-header">
          <h2 class="section-title">🔬 核心技术</h2>
          <p class="section-subtitle">创新科技，定义行业标准</p>
        </div>
        
        <div class="tech-grid">
          <div 
            v-for="tech in coreTechnologies" 
            :key="tech.id"
            class="tech-card"
            @mouseenter="setActiveTech(tech.id)"
            @click="exploreTech(tech)"
          >
            <div class="tech-icon" :style="{ color: tech.color }">
              {{ tech.icon }}
            </div>
            <h3 class="tech-name">{{ tech.name }}</h3>
            <p class="tech-desc">{{ tech.description }}</p>
            <div class="tech-highlights">
              <span 
                v-for="highlight in tech.highlights" 
                :key="highlight"
                class="highlight-tag"
              >
                {{ highlight }}
              </span>
            </div>
            <div class="tech-glow" :style="{ background: tech.glow }"></div>
          </div>
        </div>
      </div>
    </section>

    <!-- 品牌理念区 -->
    <section class="brand-vision">
      <div class="vision-container">
        <!-- 动态背景 -->
        <div class="vision-bg">
          <div class="floating-tech"></div>
          <div class="floating-tech"></div>
          <div class="floating-tech"></div>
        </div>
        
        <div class="vision-content">
          <div class="vision-text">
            <div class="vision-badge">🌌 品牌理念</div>
            <h2 class="vision-title">
              探索未知，<br>
              <span class="highlight">创造可能</span>
            </h2>
            <p class="vision-desc">
              从通信技术到智能终端，从芯片研发到云服务，华为始终致力于
              <span class="emphasize">把数字世界带入每个人、每个家庭、每个组织</span>，
              构建万物互联的智能世界。
            </p>
            
            <div class="vision-stats">
              <div class="stat-item">
                <div class="stat-number">170+</div>
                <div class="stat-label">国家与地区</div>
              </div>
              <div class="stat-item">
                <div class="stat-number">30亿+</div>
                <div class="stat-label">服务用户</div>
              </div>
              <div class="stat-item">
                <div class="stat-number">10%+</div>
                <div class="stat-label">年研发投入</div>
              </div>
            </div>
            
            <div class="vision-principles">
              <div class="principle">
                <div class="principle-icon">🎯</div>
                <div class="principle-content">
                  <h4>以客户为中心</h4>
                  <p>深入理解客户需求，提供超越期待的产品与服务</p>
                </div>
              </div>
              <div class="principle">
                <div class="principle-icon">💡</div>
                <div class="principle-content">
                  <h4>以奋斗者为本</h4>
                  <p>激励创新，尊重每一位员工的贡献与成长</p>
                </div>
              </div>
              <div class="principle">
                <div class="principle-icon">🔬</div>
                <div class="principle-content">
                  <h4>长期坚持投入</h4>
                  <p>持续研发创新，在基础科学和前沿技术不断突破</p>
                </div>
              </div>
            </div>
          </div>
          
          <div class="vision-visual">
            <div class="tech-sphere">
              <div class="sphere-core"></div>
              <div class="orbit-ring"></div>
              <div class="orbit-ring"></div>
              <div class="orbit-ring"></div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 页脚信息区 -->
    <footer class="main-footer">
      <div class="container">
        <div class="footer-content">
          <!-- 品牌信息 -->
          <div class="footer-brand">
            <div class="footer-logo">
              <span class="logo-icon">📱</span>
              <span class="logo-text">HUAWEI</span>
            </div>
            <p class="brand-slogan">
              构建万物互联的智能世界
            </p>
            <div class="social-links">
              <a href="#" class="social-link">微博</a>
              <a href="#" class="social-link">微信</a>
              <a href="#" class="social-link">抖音</a>
              <a href="#" class="social-link">B站</a>
            </div>
          </div>
          
          <!-- 产品链接 -->
          <div class="footer-links">
            <div class="link-group">
              <h4>产品系列</h4>
              <a href="#">智能手机</a>
              <a href="#">平板电脑</a>
              <a href="#">智能手表</a>
              <a href="#">笔记本电脑</a>
            </div>
            <div class="link-group">
              <h4>技术支持</h4>
              <a href="#">服务支持</a>
              <a href="#">使用技巧</a>
              <a href="#">维修服务</a>
              <a href="#">联系我们</a>
            </div>
            <div class="link-group">
              <h4>关于华为</h4>
              <a href="#">公司简介</a>
              <a href="#">新闻中心</a>
              <a href="#">招贤纳士</a>
              <a href="#">可持续发展</a>
            </div>
          </div>
          
          <!-- 联系信息 -->
          <div class="footer-contact">
            <h4>联系我们</h4>
            <div class="contact-info">
              <div class="contact-item">
                <span class="contact-icon">📞</span>
                <span>客服热线: 400-830-8300</span>
              </div>
              <div class="contact-item">
                <span class="contact-icon">🕒</span>
                <span>服务时间: 全天24小时</span>
              </div>
              <div class="contact-item">
                <span class="contact-icon">📧</span>
                <span>邮箱: service@huawei.com</span>
              </div>
            </div>
          </div>
        </div>
        
        <!-- 版权信息 -->
        <div class="footer-bottom">
          <div class="copyright">
            © 2024 华为技术有限公司 版权所有
          </div>
          <div class="footer-legal">
            <a href="#">隐私政策</a>
            <a href="#">使用条款</a>
            <a href="#">法律声明</a>
            <a href="#">Cookie政策</a>
          </div>
        </div>
      </div>
    </footer>
  </div>
</template>

<script setup>
import { ref, computed, onMounted, onUnmounted } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

// 轮播产品数据
const carouselProducts = ref([
  {
    id: 1,
    name: 'HUAWEI Pura 70 Ultra',
    badge: '影像旗舰',
    features: ['超感知影像系统', 'XMAGE色彩引擎', '昆仑玻璃', '卫星通信'],
    slogan: '每一帧，都是视觉革命',
    primaryAction: '立即体验',
    secondaryAction: '技术解析',
    image: '/src/assets/images/pura70-ultra.png',
    route: '/product/pura70-ultra'
  },
  {
    id: 2,
    name: 'HUAWEI Mate 60 Pro',
    badge: '通信旗舰',
    features: ['北斗卫星消息', '鸿蒙4.0', '昆仑玻璃', '超可靠机身'],
    slogan: '连接，无远弗届',
    primaryAction: '立即体验',
    secondaryAction: '技术解析',
    image: '/src/assets/images/mate60-pro.png',
    route: '/product/mate60-pro'
  },
  {
    id: 3,
    name: 'HUAWEI Mate X5',
    badge: '折叠科技',
    features: ['超轻薄折叠', '多任务处理', '双旋水滴铰链', '玄武钢化'],
    slogan: '展开，看见更多可能',
    primaryAction: '立即体验',
    secondaryAction: '技术解析',
    image: '/src/assets/images/mate-x5.png',
    route: '/product/mate-x5'
  },
  {
    id: 4,
    name: 'HUAWEI MatePad Pro',
    badge: '智慧办公',
    features: ['PC级应用', '多设备协同', '麒麟9000s', '120Hz OLED'],
    slogan: '工作，本该如此高效',
    primaryAction: '立即体验',
    secondaryAction: '技术解析',
    image: '/src/assets/images/matepad-pro.png',
    route: '/product/matepad-pro'
  },
  {
    id: 5,
    name: 'HUAWEI Watch 4 Pro',
    badge: '健康生活',
    features: ['健康监测', '21天长续航', 'eSIM独立通话', '100+运动模式'],
    slogan: '科技，为健康护航',
    primaryAction: '立即体验',
    secondaryAction: '技术解析',
    image: '/src/assets/images/watch4-pro.png',
    route: '/product/watch4-pro'
  }
])

// 核心技术数据
const coreTechnologies = ref([
  {
    id: 1,
    name: 'XMAGE 影像',
    icon: '📸',
    description: '自有影像品牌，重新定义移动摄影',
    color: '#b30000',
    glow: 'radial-gradient(circle, rgba(179, 0, 0, 0.3) 0%, transparent 70%)',
    highlights: ['真实色彩', '光影捕捉', '专业模式'],
    route: '/tech/xmage'
  },
  {
    id: 2,
    name: '鸿蒙系统',
    icon: '⚡',
    description: '全场景分布式操作系统',
    color: '#ff6b35',
    glow: 'radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%)',
    highlights: ['万物互联', '超级终端', '无缝流转'],
    route: '/tech/harmonyos'
  },
  {
    id: 3,
    name: '昆仑玻璃',
    icon: '💎',
    description: '10倍耐摔，超可靠保护',
    color: '#4ecdc4',
    glow: 'radial-gradient(circle, rgba(78, 205, 196, 0.3) 0%, transparent 70%)',
    highlights: ['纳米晶体', '复合材质', '整机强化'],
    route: '/tech/kunlun'
  },
  {
    id: 4,
    name: '卫星通信',
    icon: '🛰️',
    description: '连接无死角，永不失联',
    color: '#45b7d1',
    glow: 'radial-gradient(circle, rgba(69, 183, 209, 0.3) 0%, transparent 70%)',
    highlights: ['北斗消息', '双向通信', '紧急救援'],
    route: '/tech/satellite'
  },
  {
    id: 5,
    name: 'AI 盘古',
    icon: '🧠',
    description: '大模型赋能智能体验',
    color: '#96ceb4',
    glow: 'radial-gradient(circle, rgba(150, 206, 180, 0.3) 0%, transparent 70%)',
    highlights: ['自然交互', '场景感知', '个性推荐'],
    route: '/tech/pangu'
  },
  {
    id: 6,
    name: '超级快充',
    icon: '🔋',
    description: '极速充电，持久续航',
    color: '#feca57',
    glow: 'radial-gradient(circle, rgba(254, 202, 87, 0.3) 0%, transparent 70%)',
    highlights: ['无线快充', '反向充电', '智能温控'],
    route: '/tech/charging'
  }
])

// 轮播状态
const currentIndex = ref(0)
const isPlaying = ref(true)
const activeTech = ref(null)
let carouselTimer = null

// 计算轨道样式
const trackStyle = computed(() => ({
  transform: `translateX(-${currentIndex.value * 100}%)`,
  transition: 'transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94)'
}))

// 轮播方法
const nextSlide = () => {
  currentIndex.value = (currentIndex.value + 1) % carouselProducts.value.length
  resetTimer()
}

const prevSlide = () => {
  currentIndex.value = currentIndex.value === 0 
    ? carouselProducts.value.length - 1 
    : currentIndex.value - 1
  resetTimer()
}

const goToSlide = (index) => {
  currentIndex.value = index
  resetTimer()
}

const startCarousel = () => {
  if (isPlaying.value) {
    carouselTimer = setInterval(nextSlide, 3000)
  }
}

const pauseCarousel = () => {
  isPlaying.value = false
  if (carouselTimer) {
    clearInterval(carouselTimer)
    carouselTimer = null
  }
}

const resumeCarousel = () => {
  isPlaying.value = true
  startCarousel()
}

const resetTimer = () => {
  pauseCarousel()
  resumeCarousel()
}

// 产品操作
const exploreProduct = (product) => {
  router.push(product.route)
}

const showTechDetails = (product) => {
  console.log('打开技术详情:', product.name)
}

// 技术卡片交互
const setActiveTech = (techId) => {
  activeTech.value = techId
}

const exploreTech = (tech) => {
  console.log('探索技术:', tech.name)
}

// 生命周期
onMounted(() => {
  startCarousel()
})

onUnmounted(() => {
  pauseCarousel()
})
</script>

<style scoped>
.home-page {
  background: #0a0a0a;
  color: #ffffff;
}

/* 轮播容器 */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* 动态粒子背景 */
.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(179, 0, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.carousel-container {
  position: relative;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* 轮播轨道 */
.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

/* 产品展示布局 */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

/* 产品视觉区域 */
.product-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(179, 0, 0, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  perspective: 1000px;
}

.phone-screen {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  z-index: 2;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
  border-radius: 40px;
  box-shadow: 
    0 0 0 1px rgba(139, 0, 0, 0.3),
    0 20px 60px rgba(139, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 1;
}

/* 产品信息区域 */
.product-info {
  position: relative;
  z-index: 10;
}

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8b0000, #b30000);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.product-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, #cccccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.feature-tag {
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid rgba(179, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(179, 0, 0, 0.3);
  transform: translateY(-2px);
}

.product-slogan {
  font-size: 1.5rem;
  color: #cccccc;
  margin-bottom: 40px;
  font-style: italic;
  line-height: 1.4;
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, #8b0000, #b30000);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.6);
}

.btn-secondary {
  background: transparent;
  color: #cccccc;
  border: 2px solid rgba(179, 0, 0, 0.5);
}

.btn-secondary:hover {
  background: rgba(179, 0, 0, 0.1);
  border-color: #b30000;
  transform: translateY(-2px);
}

/* 导航控制 */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(179, 0, 0, 0.3);
  color: #cccccc;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 100;
}

.carousel-nav:hover {
  background: rgba(139, 0, 0, 0.3);
  color: white;
  border-color: #b30000;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* 进度指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 100;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.indicator.active {
  background: rgba(139, 0, 0, 0.5);
  transform: scale(1.2);
}

.indicator-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(135deg, #8b0000, #b30000);
  animation: progressFill 3s linear;
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* 轮播计数器 */
.carousel-counter {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cccccc;
  font-size: 14px;
}

.carousel-counter .current {
  color: #b30000;
  font-weight: 700;
  font-size: 18px;
}

.auto-text {
  margin-left: 10px;
  opacity: 0.7;
  font-size: 12px;
}

/* 核心技术展示区样式 */
.tech-features {
  padding: 120px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.tech-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b0000, transparent);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, #b30000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #cccccc;
  opacity: 0.8;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.tech-card {
  position: relative;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(179, 0, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.tech-card:hover::before {
  left: 100%;
}

.tech-card:hover {
  transform: translateY(-10px);
  border-color: rgba(179, 0, 0, 0.5);
  box-shadow: 
    0 20px 40px rgba(139, 0, 0, 0.2),
    0 0 0 1px rgba(179, 0, 0, 0.3);
}

.tech-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px currentColor);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.1) rotate(5deg);
}

.tech-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.tech-desc {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.8;
}

.tech-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-tag {
  background: rgba(179, 0, 0, 0.2);
  border: 1px solid rgba(179, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  color: #cccccc;
  transition: all 0.3s ease;
}

.tech-card:hover .highlight-tag {
  background: rgba(179, 0, 0, 0.3);
  color: #ffffff;
}

.tech-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tech-card:hover .tech-glow {
  opacity: 0.6;
}

/* 品牌理念区样式 */
.brand-vision {
  padding: 140px 0;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.vision-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.vision-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(179, 0, 0, 0.08) 0%, transparent 50%);
}

.floating-tech {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(179, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.floating-tech:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-tech:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 5s;
}

.floating-tech:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(15px) rotate(240deg); }
}

.vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.vision-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(179, 0, 0, 0.2));
  border: 1px solid rgba(179, 0, 0, 0.3);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.vision-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

.vision-title .highlight {
  background: linear-gradient(135deg, #b30000, #ff4757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision-desc {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #cccccc;
  margin-bottom: 50px;
}

.vision-desc .emphasize {
  color: #b30000;
  font-weight: 600;
}

.vision-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #cccccc;
  opacity: 0.8;
}

.vision-principles {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.principle:hover {
  background: rgba(179, 0, 0, 0.1);
  border-color: rgba(179, 0, 0, 0.3);
  transform: translateX(10px);
}

.principle-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.principle-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.principle-content p {
  color: #cccccc;
  line-height: 1.6;
  opacity: 0.8;
}

.vision-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-sphere {
  position: relative;
  width: 300px;
  height: 300px;
}

.sphere-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #b30000, #8b0000);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(179, 0, 0, 0.6);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(179, 0, 0, 0.3);
  border-radius: 50%;
  animation: orbit 20s linear infinite;
}

.orbit-ring:nth-child(2) {
  width: 200px;
  height: 200px;
  animation-delay: -5s;
}

.orbit-ring:nth-child(3) {
  width: 250px;
  height: 250px;
  animation-delay: -10s;
}

.orbit-ring:nth-child(4) {
  width: 300px;
  height: 300px;
  animation-delay: -15s;
}

@keyframes orbit {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 页脚样式 */
.main-footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  border-top: 1px solid rgba(139, 0, 0, 0.3);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  font-size: 2rem;
}

.logo-text {
  background: linear-gradient(135deg, #ffffff, #b30000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-slogan {
  color: #cccccc;
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.social-link:hover {
  color: #b30000;
  border-color: rgba(179, 0, 0, 0.3);
  background: rgba(179, 0, 0, 0.1);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.link-group h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.link-group a {
  display: block;
  color: #cccccc;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.link-group a:hover {
  color: #b30000;
  transform: translateX(5px);
}

.footer-contact h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cccccc;
  font-size: 0.9rem;
}

.contact-icon {
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: #cccccc;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: 25px;
}

.footer-legal a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: #b30000;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .product-title {
    font-size: 2.5rem;
  }
  
  .phone-mockup {
    width: 250px;
    height: 500px;
  }

  .vision-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .vision-stats {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    padding: 0 20px;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
  }
  
  .carousel-nav {
    width: 50px;
    height: 50px;
  }

  .tech-features {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tech-card {
    padding: 30px 20px;
  }

  .brand-vision {
    padding: 80px 0;
  }

  .vision-title {
    font-size: 2.5rem;
  }

  .vision-stats {
    flex-direction: column;
    gap: 25px;
  }

  .vision-principles {
    gap: 20px;
  }

  .principle {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}
</style>